/**
 * Project : wx
 * Copyright (c) Wu Guang Jing.
 * All rights reserved.
 */
package com.util;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * Description:include system static value
 *
 * @author asan
 * @version 1.0 2015-6-21
 */
public class SystemConstant {
    //是否调试
    private static final Log logger = LogFactory.getLog(SystemConstant.class);
    public static final boolean DEBUG = logger.isDebugEnabled();
    //域名

    public final static String DOMAIN_API = DEBUG ? "https://demo.keyner.com.cn" : "https://api.intelsalon.com";
    public final static String DOMAIN_IMAGE = "https://image.intelsalon.com";
    public final static Integer COOKIE_USER_AGE = 60 * 60 * 24 * 30 * 24;
    public final static String COOKIE_USER_ID = "userid";
    public final static String LOGIN_TICKET = "loginTicket";
    public final static String VERIFY_CODE = "VERIFY_CODE";
    public final static String SIGN_SECRET = "0og#X2kZUYYn!Qy&QQOyKLnkyYEMcnoK";//密钥
    public static String SESSION_ADMIN = "session_admin";
    public static String SESSION_HOTEL_ADMIN = "hotel_admin";
    public static String SESSION_AGENT_ADMIN = "agent_admin";
    public static String SESSION_URL = "session_url";
    public static String LOGIN_URL = "/login?oauth_callback=";
    public static final String SESSION_SECURITY_CODE = "sessionSecCode";
    public static final String SESSION_RIGHT_LIST = "menu_right_list";            //当前菜单

    // 登录凭证
    public final static String LOGIN_TICKET_SECRET = "JVVvnWONRjv$pumKzXj@NNCJ34a^P22p";
    public final static String QUERY_TIME_START = " 00:00:00";
    public final static String QUERY_TIME_END = " 23:59:59";
    public final static String COMPONENT_ENCODINGAESKEY = "avfNW3N4nU8815Adur0m2T97Qnv9cfF8aR6KWEdbD8L";
    public final static String COMPONENT_TOKEN = "49fc04d4dfd28650";


    public  final static String RESOURCE_PATH= SystemConstant.class.getResource("/").getPath();

    public  final static String TEMP_PATH= RESOURCE_PATH+"temp/";

    public final static String QR_URL="http://121.41.53.189:8089";
}
